/**
 * @Author: likang xie
 * @Date: 2019-11-06 17:11:52
 * @Usage: 程序主入口
 */

import Vue from "vue";
import App from "./App";
import toast from "./utils/toast";
import config from "./config";

import uView from "uview-ui";
Vue.use(uView);

import release from "./components/release.vue";


let releasetep = Vue.component('release', release)

// ---- 全局属性挂载 ----
Vue.prototype.$toast = toast;
Vue.prototype.$config = config;
Vue.prototype.toChatPage = (uid) => {
    let url = "/user/login";
    if (uni.getStorageSync("userInfo"))
        url = `/message/chat?toUserId=${uid}`;
    uni.navigateTo({
        url,
    });
};

App.mpType = "app";


new Vue({
    ...App,
}).$mount();


// document.body.appendChild(new releasetep().$mount().$el)